package org.bugwatch.dice;

import java.util.Random;

public class ShortValuesDice implements Dice<Short> {

	private short sides=6;
	
	private Random generator;
	
	public ShortValuesDice() {
		super();
		generator=new Random(System.currentTimeMillis());
	}



	@Override
	public Short roll() {
		
		return (short) (generator.nextInt(sides)+1);
		
	}

}
